package com.gui.hospital.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gui.hospital.mapper.DoctorMapper;
import com.gui.hospital.model.Doctor;
import com.gui.hospital.service.DoctorService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * @author 言叶
 * Date：2025/9/4
 */
@Service
@AllArgsConstructor
public class DoctorServiceImpl
        extends ServiceImpl<DoctorMapper, Doctor>
        implements DoctorService {
    private final DoctorMapper doctorMapper;
    /*
     * 根据科室id和日期查询医生信息
     * @param deptId 科室id
     * @param time 日期
     * @return 医生信息
     */
    @Override
    public List<Doctor> findByDeptIdAndTime(Integer deptId, String time) {
        return doctorMapper.findByDeptIdAndTime(deptId, time);
    }
}
